home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWWindow / Sources / FWWinPro.cpp < prev   
Encoding:
Text File  |  1996-08-16  |  2.4 KB  |  93 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWWinPro.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFrameW.hpp"
  11.  
  12. #ifndef FWWINPRO_H
  13. #include "FWWinPro.h"
  14. #endif
  15.  
  16. #ifndef SLWINDOW_H
  17. #include "SLWindow.h"
  18. #endif
  19.  
  20. #ifndef FWWINDOW_H
  21. #include "FWWindow.h"
  22. #endif
  23.  
  24. #ifndef FWDEBUG_H
  25. #include "FWDebug.h"
  26. #endif
  27.  
  28. // ----- OpenDoc Utilities -----
  29.  
  30. #ifndef _STDTYPIO_
  31. #include "StdTypIO.h"
  32. #endif
  33.  
  34. #ifndef _STORUTIL_
  35. #include <StorUtil.h>
  36. #endif
  37.  
  38. // ----- OpenDoc Includes -----
  39.  
  40. #ifndef SOM_ODFrame_xh
  41. #include <Frame.xh>
  42. #endif
  43.  
  44. #if defined(__MWERKS__) && GENERATING68K
  45. // A hack to work around a bug
  46. #pragma import list somGetGlobalEnvironment
  47. #endif
  48.  
  49. //========================================================================================
  50. //    Runtime Info
  51. //========================================================================================
  52.  
  53. #ifdef FW_BUILD_MAC
  54. #pragma segment fwwindow
  55. #endif
  56.  
  57. FW_DEFINE_AUTO(FW_CWindowProperties)
  58.  
  59. //========================================================================================
  60. //    class FW_CWindowProperties
  61. //========================================================================================
  62.  
  63. //----------------------------------------------------------------------------------------
  64. //    FW_CWindowProperties::FW_CWindowProperties
  65. //----------------------------------------------------------------------------------------
  66.  
  67. FW_CWindowProperties::FW_CWindowProperties()
  68. {
  69.     FW_PrivInitWindowProperties(this);
  70. }
  71.  
  72. //----------------------------------------------------------------------------------------
  73. //    FW_CWindowProperties::~FW_CWindowProperties
  74. //----------------------------------------------------------------------------------------
  75.  
  76. FW_CWindowProperties::~FW_CWindowProperties()
  77. {
  78.     if (fSourceFrame)
  79.         fSourceFrame->Release(somGetGlobalEnvironment());
  80. }
  81.  
  82. //----------------------------------------------------------------------------------------
  83. //    FW_CWindowProperties::ReadWindowProperties
  84. //----------------------------------------------------------------------------------------
  85.  
  86. FW_Boolean FW_CWindowProperties::ReadWindowProperties(Environment* ev, ODFrame* frame)
  87. {
  88.     FW_Boolean result = FW_PrivReadWindowProperties(ev, this, frame);
  89.     FW_FailOnEvError(ev);
  90.     
  91.     return result;
  92. }
  93.